/**
 登录后首页
 */
define(["jquery",
    "knockout",
    "text!static/pages/home/tpl/puhome.tpl.html",
    "baseview",
    "common",
    "static/pages/home/myproject",
    "static/pages/home/putodo",
    "static/pages/home/pustatistic",
    "text!static/pages/home/tpl/puhomeen_US.tpl.html",
    "bstreetable"
],function(
    $,
    ko,
    template,
    BaseView,
    Common,
    Myproject,
    Todo,
    Pustatistic,
    templateen_US
){
    var view = BaseView.extend({
        setTemplate:function(option) {
            var locale = Common.cookie.get("u_locale");
            if (locale == "en_US") {
                this.el.html(templateen_US);
            } else {
                this.el.html(template);
            }
        },
        render:function() {
            new Myproject({el:$("#myproject")});
            new Todo({el:$("#putodo")});
            new Pustatistic({el:$("#lineChart")});
        },
        bindEvents:function() {
        }
    });
    return view;
});